package com.gmss.crawler.module.retraction.paper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 撤稿论文表
 * </p>
 *
 * @author Auto-generator
 * @since 2021-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("r_paper")
public class RPaper extends Model<RPaper> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 标题
     */
    private String title;
    /**
     * 论文发表日期
     */
    private String originalPublicationDate;
    /**
     * pubMedId
     */
    private String originalPubMedId;
    /**
     * doi
     */
    private String originalDoi;
    /**
     * 撤稿或其它通知日期
     */
    private String retractionOrOtherNoticesDate;
    /**
     * pubMedId
     */
    private String retractionOrOtherNoticesPubMedId;
    /**
     * doi
     */
    private String retractionOrOtherNoticesDoi;
    /**
     * 文章类型
     */
    private String articleType;
    /**
     * 通知性质，撤稿或关注等
     */
    private String natureOfNotice;
    /**
     * 期刊
     */
    private String journal;
    /**
     * 出版商
     */
    private String publisher;
    /**
     * 学科，多个“;”分隔
     */
    private String subject;
    /**
     * 关键词
     */
    private String keywords;
    /**
     * 国家，多个“,”分隔
     */
    private String countries;
    /**
     * 所有作者，多个“,”分隔
     */
    private String allAuthors;
    /**
     * 摘要
     */
    private String describeData;
    /**
     * 相关链接
     */
    private String relatedLinks;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建者
     */
    private String createUser;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 更新者
     */
    private String updateUser;

    @TableField(exist = false)
    private List<String> reasonList;

    @TableField(exist = false)
    private List<String> authorList;

    @TableField(exist = false)
    private String filePath;
    @TableField(exist = false)
    private String fileName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
